package com.ruoyi.shoufang.service;

import com.ruoyi.common.core.domain.R;
import com.ruoyi.common.core.web.domain.AjaxResult;
import com.ruoyi.shoufang.domain.HouseInfo;
import com.ruoyi.shoufang.domain.SaveSfContractForm;
import com.ruoyi.shoufang.domain.TSfContract;
import com.baomidou.mybatisplus.extension.service.IService;

import java.security.GeneralSecurityException;
import java.util.List;

/**
* @author xuda
* @description 针对表【t_sf_contract】的数据库操作Service
* @createDate 2023-04-24 17:47:33
*/
public interface TSfContractService extends IService<TSfContract> {

    // 收房合同查询
    List<TSfContract> searchContractList(TSfContract tSfContract);

    // 选择房产弹出List列表带分页
    List<HouseInfo> searchHouseInfoList(HouseInfo houseInfo);

    // 收房合同录入
    void saveSfContract(SaveSfContractForm saveSfContractForm);

    // 解约协议录入
    void saveSfTermination(SaveSfContractForm saveSfContractForm) throws Exception;

    AjaxResult nextCfContract(SaveSfContractForm saveSfContractForm);

    R<Object> generatePayMentPlan(SaveSfContractForm saveSfContractForm);

    void updateFlagById(TSfContract sfContract);
}
